realtek: cleanup debugfs creation in serdes driver
authorMarkus Stockhausen <[email protected]>
Sun, 14 Dec 2025 09:03:47 +0000 (10:03 +0100)
committerRobert Marko <[email protected]>
Mon, 15 Dec 2025 08:29:17 +0000 (09:29 +0100)
commit3c073b5cb208e9ca77a786f38dc941316ee25c67
treeb598f3e9f41539b38a9d6c115852a01c85dbdc2d
parentdcbc8722e970292af1526adf173895bf2f2cae14
realtek: cleanup debugfs creation in serdes driver

debugfs_create_dir() has a proper logic to handle existing directories.
Skip the manual test. Additionally quit early if directory creation fails.

Signed-off-by: Markus Stockhausen <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/21157
Signed-off-by: Robert Marko <[email protected]>
target/linux/realtek/files-6.12/drivers/net/mdio/mdio-realtek-otto-serdes.c